package com.cu.employmentmanagementsystem.dao;

import com.cu.employmentmanagementsystem.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AdminDao {
    int insert(Admin admin);
    int delete(Long id);
    int update(Admin admin);
    List<Admin> select(Admin admin);

    List<Admin> queryAllByLimit(Admin admin, PageRequest pageRequest);

    long count(Admin admin);

    Admin queryById(Long id);

    int deleteById(Long id);

    List<Admin> queryAllByCondition(Admin admin);
}
